package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.ShopGoodsOrderItem;

/**
 * 订单项Mapper接口
 * 
 * @author jiaodacailei
 * @date 2022-06-12
 */
public interface ShopGoodsOrderItemMapper 
{
    /**
     * 查询订单项
     * 
     * @param id 订单项主键
     * @return 订单项
     */
    public ShopGoodsOrderItem selectShopGoodsOrderItemById(Long id);

    /**
     * 查询订单项列表
     * 
     * @param shopGoodsOrderItem 订单项
     * @return 订单项集合
     */
    public List<ShopGoodsOrderItem> selectShopGoodsOrderItemList(ShopGoodsOrderItem shopGoodsOrderItem);

    /**
     * 新增订单项
     * 
     * @param shopGoodsOrderItem 订单项
     * @return 结果
     */
    public int insertShopGoodsOrderItem(ShopGoodsOrderItem shopGoodsOrderItem);

    /**
     * 修改订单项
     * 
     * @param shopGoodsOrderItem 订单项
     * @return 结果
     */
    public int updateShopGoodsOrderItem(ShopGoodsOrderItem shopGoodsOrderItem);

    /**
     * 删除订单项
     * 
     * @param id 订单项主键
     * @return 结果
     */
    public int deleteShopGoodsOrderItemById(Long id);

    /**
     * 批量删除订单项
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopGoodsOrderItemByIds(Long[] ids);
}
